import { useState } from 'react'

import { Outlet,Link} from 'react-router-dom'
function App() {
  const [count, setCount] = useState(0)

  return (
    <div className='App'>
      <Link to='/home'>HOME</Link>
      <Link to='/about'>About</Link>
      <Link to='/user'>About</Link>
      {/* 占位符组件，类似于窗口，用于展示组件的，有点像vue中router-view */}
        <Outlet />
    </div>
  )
}

export default App
